package com.hspedu.spring.component;

import com.hspedu.spring.annotation.Component;

/**
 * @author xianYun
 * @version 1.0
 **/
@Component(value = "smartDog")
public class SmartDog implements SmartAnimalable {
    public Float getSum(float n1, float n2) {
        float res = n1 + n2;
        System.out.println("getSum方法中输出res = " + res);
        return res;
    }

    public Float getSub(float n1, float n2) {
        float res = n1 - n2;
        System.out.println("getSub方法中输出res = " + res);
        return res;
    }
}
